﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

using WorkStation.Frameworks.Configuration.Elements;

namespace WorkStation.Frameworks.EasyBus.Configurations
{
    public class PublishConfiguration : BaseConfiguration
    {
        [XmlAttribute("routeKey")]
        public string RouteKey { get; set; }

        [XmlAttribute("description")]
        public string Description { get; set; }
    }

    public class PublishConfigurationCollection : BaseConfigurationCollection<PublishConfiguration>
    {
        [XmlElement("publish")]
        public List<PublishConfiguration> Publishs 
        {
            get { return this._list; }
            set { this._list = value; }
        }
    }
}
